import request from '@/utils/request'

export function upload(data) {
  const formData = new FormData()
  formData.append('file', data)
  return request({
    url: '/upload',
    method: 'post',
    data: formData,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}

export function search(towerNo) {
  return request({
    url: '/search/' + towerNo,
    method: 'post'
  })
}
